﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="TabWithControlsAndCommands"
                Location="CommandUI.Ribbon"
                Title="TabWithControlsAndCommands">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.Tabs._children">
          <Tab Id="Ribbon.TabWithControlsAndCommands"
               Title="My Tab With Content"
               Description="This is my tab!"
               Sequence="300"
               Command="Ribbon.TabWithControlsAndCommands">
            <Scaling Id="Ribbon.TabWithControlsAndCommands.Scaling">
              <MaxSize Id="Ribbon.TabWithControlsAndCommands.Scaling.DemoGroup.MaxSize" Sequence="10" GroupId="Ribbon.TabWithControlsAndCommands.DemoGroup" Size="LargeLarge" />
            </Scaling>
            <Groups Id="Ribbon.TabWithControlsAndCommands.Groups">
              <Group Id="Ribbon.TabWithControlsAndCommands.DemoGroup"
                     Title="Demo Group"
                     Sequence="10"
                     Command="Ribbon.TabWithControlsAndCommands.DemoGroup"
                     Template="Ribbon.Templates.Flexible2">
                <Controls Id="Ribbon.TabWithControlsAndCommands.DemoGroup.Controls">
                  <Button Id="Ribbon.TabWithControlsAndCommands.DemoGroup.MyFirstButton"
                          LabelText="Click Me"
                          Sequence="10"
                          TemplateAlias="o1"
                          Command="Ribbon.TabWithControlsAndCommands.DemoGroup.MyFirstButton"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                  <Button Id="Ribbon.TabWithControlsAndCommands.DemoGroup.MySecondButton"
                          LabelText="Click Me 2"
                          Sequence="20"
                          TemplateAlias="o1"
                          Command="Ribbon.TabWithControlsAndCommands.DemoGroup.MySecondButton"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                  <Button Id="Ribbon.TabWithControlsAndCommands.DemoGroup.MyThirdButton"
                          LabelText="Navigate"
                          Sequence="30"
                          TemplateAlias="o1"
                          Command="Ribbon.TabWithControlsAndCommands.DemoGroup.MyThirdButton"
                          Image16by16="/_layouts/images/RibbonCustomization/Warning16.png"
                          Image32by32="/_layouts/images/RibbonCustomization/Warning32.png" />
                </Controls>
              </Group>
            </Groups>
          </Tab>
        </CommandUIDefinition>
      </CommandUIDefinitions>
    </CommandUIExtension>
  </CustomAction>
</Elements>
